package com.aaa.javaweb.dao.impl;

import com.aaa.javaweb.dao.LogDao;
import com.aaa.javaweb.until.JDBCUntil;

import javax.swing.*;
import java.util.List;
import java.util.Map;

public class LogDaoImpl implements LogDao {
    @Override
    public List<Map> query(String name, String pwd) {
        String sql="select * from t_staff where  sname=? and spwd=?";
        return JDBCUntil.selectMap(sql,name,pwd);
    }
}
